#ifndef FRIENDSITEM_H
#define FRIENDSITEM_H

#include <QWidget>
#include "request/filerequest.h"

namespace Ui {
class friendsitem;
}

class friendsitem : public QWidget
{
    Q_OBJECT

public:

    explicit friendsitem(int curent_id, const QString &name ,const QString &avatarUrl,QWidget *parent = nullptr);
    ~friendsitem();

    void onFileGetFinished(QByteArray obj);

private:

    FileRequest *file_request = nullptr;

    int id;

    QString friendname;

    QString avatar_url;

    Ui::friendsitem *ui;
};

#endif // FRIENDSITEM_H
